/**  
* @Title: BannerController.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年8月9日  
*/
package com.fortune.rainshinesystem.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.system.BannerModel;
import com.fortune.rainshinecommon.model.system.CardModel;
import com.fortune.rainshinesystem.service.BannerService;

/**  
* @ClassName: BannerController  
* @Description: TODO(这里用一句话描述这个类的作用)  
* @author 张鑫
* @phone 17561783855
* @date 2019年8月9日  
*    
*/
@RestController
@RequestMapping("/banner")
public class BannerController {
	@Autowired
    private BannerService bannerService;
	
	@PostMapping("/add")
    public MsgModel add(@RequestBody BannerModel model){
        return bannerService.add(model);
    }
	
	@PostMapping("/list")
    public MsgModel list(@RequestBody ParmsModel model){
        return bannerService.list(model);
    }
	
	@PostMapping("/update")
    public MsgModel update(@RequestBody BannerModel model){
        return bannerService.update(model);
    }
	
    @PostMapping("/delete")
    public MsgModel delete(@RequestBody BannerModel model){
        return bannerService.delete(model);
    }
}
